package com.cf.game.im;

import com.cf.crud.service.AbsBaseService;
import com.cf.game.im.dao.HelloMsgMapper;
import com.cf.game.im.model.HelloMsg;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * boot-game-HelloMsgService
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/31 下午 03:20
 */
@Slf4j
public class HelloMsgService extends AbsBaseService<HelloMsg, HelloMsgMapper> {

    @Override
    public Class getTargetClass() {
        return HelloMsg.class;
    }

    public List<HelloMsg> getUserHelloMsg(long sender) {
        return this.mapper.selectByUserId(sender);
    }
}
